package com.zxm.springcloud.service;

import com.zxm.springcloud.entities.CommonResult;
import com.zxm.springcloud.entities.PayMent;
import com.zxm.springcloud.service.impl.PaymentServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "nacos-payment-provider", fallback = PaymentServiceImpl.class)
public interface PaymentService {
    @GetMapping("/paymentSQL/{id}")
    CommonResult<PayMent> paymentSQL(@PathVariable("id") Long id);

    //9001测试
    @GetMapping(value = "/payment/nacos/{id}")
    public String getPayment(@PathVariable("id") Integer id);
}
